import { JsonProperty } from '../../../../adep/json'

class ValidationRules {
    public min: { value: number };
    public max: { value: number };
    public required: { value: boolean };
}

export class BankChartContentModel {

    public order: number;
    public next: number;
    public skip: number;

    public type: string;
    public question: string;
    public example: string;
    public name: string;

    public choices: any[];

    @JsonProperty({ clazz: ValidationRules })
    public validationRules: ValidationRules;
    
    public answer?: { text: string, value: any };
    public pageIndex?: number;
}